← Index
NYTProf Performance Profile   
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:33:30 2016

Filename(eval 1137)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78]
StatementsExecuted 0 statements in 0s
Eval Invoked At/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm line 78
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

NOTE!
The data used to generate this report page was merged from 4 of the 40 executions
of the string eval on line 78 of /usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm.
Line State
ments
Time
on line
Calls Time
in subs
Code
1sub {
2 my $context = shift || die "template sub called without context\n";
348µs my $stash = $context->stash;
# spent 8µs making 4 calls to Template::Context::stash, avg 2µs/call
4 my $output = '';
5 my $_tt_error;
6
7 eval { BLOCK: {
8#line 1 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
9# USE
10$stash->set('Branches',
11 $context->plugin('Branches'));
12$output .= "\n";
13#line 50 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
14if (($stash->get('CAN_user_circulate'))) {
15#line 23 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
16if (($stash->get('CircAutocompl'))) {
17$output .= "<script type=\"text/javascript\">\n//<![CDATA[\n\$(document).ready(function(){\n \$( \"#findborrower\" ).autocomplete({\n source: \"/cgi-bin/koha/circ/ysearch.pl\",\n minLength: 3,\n select: function( event, ui ) {\n \$( \"#findborrower\" ).val( ui.item.cardnumber );\n \$(\"#patronsearch\").submit();\n return false;\n }\n })\n .data( \"ui-autocomplete\" )._renderItem = function( ul, item ) {\n return \$( \"<li></li>\" )\n .data( \"ui-autocomplete-item\", item )\n .append( \"<a>\" + item.surname + \", \" + item.firstname + \" (\" + item.cardnumber + \") <small>\" + item.dateofbirth + \" \" + item.address + \" \" + item.city + \" \" + item.zipcode + \" \" + item.country + \"</small></a>\" )\n .appendTo( ul );\n };\n\n});\n//]]>\n</script>";
18}
19
20$output .= "\n <div id=\"circ_search\" class=\"residentsearch\">\n <p class=\"tip\">Enter patron card number or partial name:</p>\n <form action=\"/cgi-bin/koha/circ/circulation.pl\" id=\"patronsearch\" method=\"post\">\n ";
21#line 47 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
22if (($stash->get('CircAutocompl'))) {
23$output .= "\n <div class=\"autocomplete\">\n <input autocomplete=\"off\" id=\"findborrower\" name=\"findborrower\" size=\"40\" class=\"head-searchbox focus\" type=\"text\" />\n <input id=\"autocsubmit\" type=\"submit\" class=\"submit\" value=\"Submit\" />\n <input name=\"branch\" value=\"";
24#line 31 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
25$output .= $stash->get(['Branches', 0, 'GetLoggedInBranchcode', 0]);
26$output .= "\" type=\"hidden\" />\n <input name=\"printer\" value=\"\" type=\"hidden\" />\n ";
27#line 36 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
28if (($stash->get('stickyduedate'))) {
29$output .= "\n <input type=\"hidden\" name=\"duedatespec\" value=\"";
30#line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
31$output .= $stash->get('duedatespec');
32$output .= "\" />\n <input type=\"hidden\" name=\"stickyduedate\" value=\"";
33#line 35 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
34$output .= $stash->get('stickyduedate');
35$output .= "\" />\n ";
36}
37
38$output .= "\n </div>\n ";
39}
40else {
41$output .= "\n <input id=\"findborrower\" name=\"findborrower\" size=\"40\" class=\"head-searchbox focus\" type=\"text\" />\n <input name=\"branch\" value=\"";
42#line 40 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
43$output .= $stash->get('branch');
44$output .= "\" type=\"hidden\" />\n <input name=\"printer\" value=\"\" type=\"hidden\" />\n ";
45#line 45 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
46if (($stash->get('stickyduedate'))) {
47$output .= "\n <input type=\"hidden\" name=\"duedatespec\" value=\"";
48#line 43 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
49$output .= $stash->get('duedatespec');
50$output .= "\" />\n <input type=\"hidden\" name=\"stickyduedate\" value=\"";
51#line 44 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc"
52$output .= $stash->get('stickyduedate');
53$output .= "\" />\n ";
54}
55
56$output .= "\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n ";
57}
58
59$output .= "\n </form>\n </div>\n ";
60}
61
62$output .= "\n";
63 } };
64 if ($@) {
65 $_tt_error = $context->catch($@, \$output);
66 die $_tt_error unless $_tt_error->type eq 'return';
67 }
68
69 return $output;
70}
71
72;